package com.zcn.io.web.controller;

import com.zcn.io.common.pojo.CommonResult;
import com.zcn.io.web.service.OrderTransferPhoneRecordService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc:
 * @author: 202438 邱建伟
 * @date: 2024/10/6 21:14
 * @Copyright (c) 2024, All Rights Reserved.
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/orderTransferPhoneRecord")
public class OrderTransferPhoneRecordController {
    private final OrderTransferPhoneRecordService orderTransferPhoneRecordService;

    @DeleteMapping("/deleteById")
    public CommonResult<String> deleteById(String id){
        orderTransferPhoneRecordService.deleteById(id);
        return CommonResult.success("删除成功");
    }
}
